home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 1 / Cream of the Crop 1.iso / WINDOWS / RESGAUGE.ARJ / MAKEFILE < prev    next >
Text File  |  1992-08-20  |  2KB  |  74 lines

  1. # =============================================================================
  2. # makefile -- nmake file for ResGauge.
  3. # -----------------------------------------------------------------------------
  4. # linker flags:
  5. #   a:16     align on 16-byte (paragraph) boundaries
  6. #   nod      ignore default libraries
  7. # -----------------------------------------------------------------------------
  8. # resource compiler flags:
  9. #   r        compile only
  10. #   t        mark for protected mode only
  11. # -----------------------------------------------------------------------------
  12. # C compiler flags:
  13. #   c        compile only
  14. #   nologo   don't display the startup logo
  15. #   AM       generate medium-model code
  16. #   DSTRICT  enable more rigorous type and parameter checking
  17. #   G2s      generate '286 code
  18. #            disable stack checking
  19. #   GA       optimize entry/exit code for protected mode applications
  20. #   Ow       assume cross-function aliasing
  21. #   W3       set warnings to level 3
  22. #   WX       treat warnings as errors
  23. #   Zp       pack structures on byte boundaries
  24. # =============================================================================
  25.  
  26.  
  27. # ------
  28. # macros
  29. # ------
  30. CFLAGS  = -c -nologo -AM -DSTRICT -G2s -GA -Ow -W3 -WX -Zp
  31. INCLS   = $(NAME).h
  32. LFLAGS  = /a:16 /nod
  33. LIBS    = libw mlibcew commdlg toolhelp
  34. NAME    = resgauge
  35. OBJS    = about.obj config.obj init.obj profile.obj resgauge.obj
  36. RCFILES = $(NAME).rc $(NAME).h $(NAME).ico
  37. RFLAGS  = -r
  38. SRCS    = about.c config.c init.c profile.c resgauge.c
  39.  
  40.  
  41. # ---------------
  42. # inference rules
  43. # ---------------
  44. .c.obj:
  45.     cl $(CFLAGS) $*.c
  46.  
  47. .rc.res:
  48.     rc $(RFLAGS) $*.rc
  49.  
  50.  
  51. # ------------
  52. # dependencies
  53. # ------------
  54. all: $(NAME).exe
  55.  
  56. $(SRCS:.c=.obj): $(INCLS)
  57.  
  58. $(NAME).res: $(RCFILES)
  59.  
  60. $(NAME).exe: $(OBJS) $(NAME).res $(NAME).def
  61.     link @<<
  62.     $(LFLAGS) $(OBJS),
  63.     $(NAME).exe,
  64.     nul,
  65.     $(LIBS),
  66.     $(NAME).def
  67. <<
  68.     rc -t resgauge.res resgauge.exe
  69.  
  70.  
  71. # ===============
  72. # end of makefile
  73. # ===============
  74.